home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Demos / A.D. Software / OOFILE / OOFILE AppMaker / FileAndFind / Pre-built version, as generated / CFileAndFindDoc.h < prev    next >
Text File  |  1996-03-21  |  1KB  |  50 lines

  1. // CFileAndFindDoc.h -- document class
  2. // Created 21/3/96 12:09 by AppMaker
  3.  
  4. #pragma once
  5.  
  6. #include <LSingleDoc.h>
  7. #include "oofpp.hpp"
  8.  
  9. // Define the creator type and file type for your application:
  10. #define kSignature        'FnF1'
  11. #define kFileType        'OOCT'
  12.  
  13. class dbConnect;
  14. class    CdbArticles;
  15.  
  16. class    CListArticles;
  17.  
  18. //----------
  19. class    CFileAndFindDoc : public LSingleDoc, public dbDocHelper {
  20. public:
  21.                         CFileAndFindDoc    (LCommander    *inSuper);
  22.     virtual                ~CFileAndFindDoc();
  23.  
  24.     virtual void        newFile();
  25.     virtual void        openFile    (FSSpec        *inFileSpec);
  26.  
  27.     virtual void        DoPrint();
  28.  
  29.     virtual Boolean        ObeyCommand            (CommandT    inCommand,
  30.                                              void        *ioParam = nil);
  31.     virtual void        FindCommandStatus    (CommandT    inCommand,
  32.                                              Boolean    &outEnabled,
  33.                                              Boolean    &outUsesMark,
  34.                                              Char16        &outMark,
  35.                                              Str255        outName);
  36.  
  37. protected:
  38.     virtual void        DoAddArticleLocation();
  39.     virtual void        DoDelArticleLocation();
  40.  
  41. protected:
  42. private:
  43. void CompleteOpenFile(FSSpec        *inFileSpec);
  44. void MakeDatabaseObjects();
  45.  
  46. // OOFILE members
  47. dbConnect        *mData;    // owned
  48. CdbArticles    *mArticles;    // owned
  49. };
  50.